[broadway] Fix typo in implicit grab support
authorAlexander Larsson <alexl@redhat.com>
Thu, 7 Apr 2011 13:26:37 +0000 (15:26 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 7 Apr 2011 13:26:37 +0000 (15:26 +0200)
We do an implicit grab if there is no grab already, not only if there is
one.

gdk/broadway/broadway.js

index 8a40605e244ebad5bf608d418835cbbdfc30c1bc..63680b448aa8b731144a8616ade9050bc8f111bd 100644 (file)
@@ -819,7 +819,7 @@ function onMouseDown (ev) {
     var id = getSurfaceId(ev);
     id = getEffectiveEventTarget (id);
     var pos = getPositionsFromEvent(ev, id);
-    if (grab.window != null)
+    if (grab.window == null)
        doGrab (id, false, true);
     var button = ev.button + 1;
     lastState = lastState | getButtonMask (button);